//#pragma once
#ifndef CLOG_H
#define CLOG_H

#include <Windows.h>

#define BUF_SIZE 1024

enum LogLevel
{
	INFO_LEVEL,
	DEBUG_LEVEL,
	WARNING_LEVEL,
	ERROR_LEVEL,
	NONE_LEVEL
};

class CLog
{
public:
	CLog(void);
	virtual ~CLog(void);

public:
	BOOL WriteLog(int iLogLevel, const char *fmt, ...);

private:
	CRITICAL_SECTION m_CS;
};


#endif